package com.expert.enums;

/**
 * @ClassName: RoleLevel
 * @Author: cxs
 * @Date: 2024/02/07 13:59
 * @Description:
 **/
public enum RoleLevel {

    ALL(-1, "all"),   //所有用户可访问
    USER(0, "user"),

    ADMIN(1, "admin"),   //超级管理员可访问
    SUPER(2, "super");
    int code;
    String msg;

    RoleLevel(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    }
